package com.guodi.model.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guodi.model.entity.IdtReportFill;
import com.guodi.model.mapper.IdtReportFillMapper;
import com.guodi.model.service.IIdtReportFillService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述：上报值填报表 服务类
 * @作者: 代鹏刚
 * @日期: 2020-11-07
 */
@Service
public class IdtReportFillServiceImpl extends ServiceImpl<IdtReportFillMapper, IdtReportFill> implements IIdtReportFillService {

    @Override
    public List<IdtReportFill> listByData(List<String> indicatorsIds, String[] userDivisions) {
        QueryWrapper<IdtReportFill> queryWrapper = new QueryWrapper<>();
        queryWrapper.in("indicators_id", indicatorsIds);
        queryWrapper.in("division_code",userDivisions);
        return this.list(queryWrapper);
    }
}